# from DataContainer.DataViewGui.GridStateTransitions import GridStateTransitions;
# from DataContainer.DataViewGui.GridStateDistances import GridStateDistances;
# from DataContainer.DataViewGui.GridRiskActResults import GridRiskActResults;
# from DataContainer.DataViewGui.GridMdpRisksInfo import GridMdpRisksInfo;
# from DataContainer.DataViewGui.GridGralMdpParams import GridGralMdpParams;
# from DataContainer.DataViewGui.GridStateInfo import GridStateInfo;
from DataContainer.DataViewGui.GridStTraceEvents import GridStTraceEvents;
from DataContainer.DataViewGui.GridGrpActsTable import GridGrpActsTable;
from DataContainer.DataViewGui.MazeStInput import MazeStInput;
from DataContainer.DataViewGui.MazeProbs import MazeProbs;
from PyQt4 import QtCore;

class DataView(QtCore.QObject):    
    def __init__(self, objData):
        self.dataModel = objData.dataModel;
        self.objData = objData;
        self.parent = objData.parent;
#         self.gridMdpParams = GridGralMdpParams(objData);
#         self.gridStTrans = GridStateTransitions(objData);
#         self.gridStDists = GridStateDistances(objData);
#         self.gridStInfo = GridStateInfo(objData);
#         self.gridRiskActRes = GridRiskActResults(objData);
#         self.gridMdpRiskInfo = GridMdpRisksInfo(objData);
        self.gridStTraceEvents = GridStTraceEvents(objData);
        self.gridGrpActsTbl = GridGrpActsTable(objData);
        self.mazeStInput = MazeStInput(objData);
        self.mazeProbs = MazeProbs(objData);
        
#         self.gridMdpParams.myDockWidget.setVisible(False);
#         self.gridStTrans.myDockWidget.setVisible(False);
#         self.gridStDists.myDockWidget.setVisible(False);
#         self.gridStInfo.myDockWidget.setVisible(False);
#         self.gridRiskActRes.myDockWidget.setVisible(False);
#         self.gridMdpRiskInfo.myDockWidget.setVisible(False);
        self.gridGrpActsTbl.myDockWidget.setVisible(True);
#         self.gridStTraceEvents.myDockWidget.setVisible(False);
#         self.mazeStInput.myDockWidget.setVisible(False);
        
    def updateGridTables(self):
#         self.gridMdpParams.updateGrid();
#         self.gridRiskActRes.updateGrid();
#         self.gridStTrans.updateGrid();
#         self.gridStDists.updateGrid();
#         self.gridStInfo.updateGrid();
#         self.gridMdpRiskInfo.updateGrid();
        self.gridStTraceEvents.updateGrid();
        self.gridGrpActsTbl.updateGrid();
        self.mazeStInput.updateLbx();
        
#     def updateGridTables_FromAlgorithms(self):
#         self.gridStDists.updateGrid();
#         self.gridStInfo.updateGrid();
        
        